package com.ruoyi.school.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.school.api.factory.RemoteSchoolFallbackFactory;
import com.ruoyi.school.api.model.TopVO;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 远程top服务
 * @author zhaoYuFei
 */
@FeignClient(contextId = "remoteSchoolTopService",value = ServiceNameConstants.SCHOOL_SERVICE,fallbackFactory = RemoteSchoolFallbackFactory.class)
public interface RemoteSchoolTopService {
    /**
     * 热点学校top
     */
    @GetMapping("/getTop/school")
    public List<TopVO> getSchoolTop();
    /**
     * 热点专业top
     */
    @GetMapping("/getTop/speciality")
    public List<TopVO> getSpecialityTop();
}
